
Operating system used : Windows
Version of the software used in the analysis:
- Matlab 2024b
- R version 4.3.2 (2023-10-31 ucrt)

1. Start with runing the file Replication.R 
The file runs the estimation and do the interest rate decomposition and the figures up to section 5
The Tables are generated in the code, there is clear comments on which section of the code generates which table
Figure 5 is generated in this file 

2. Then go to the  matlab code folder and run the file functions_nlsystem_modified using matlab to get the Social planner counterfactual
The file creates the csv files data and dataI that are then use in graphSP.R 


3. In the same folder, run graphSP.R to get the LTV and interet rate figure of section 6